| Last Update: | February 02, 2007 |
| Status: | Release |
| Version: | 10.1.3.2.0 |
Introduction
Prerequisites
Installing Oracle Java Portlet Container
Deploying JSR 168 portlet applications
Adding Portlets to a Page
Oracle Java Portlet Container enables you to quickly and easily build and run interoperable Java portlets. The container provides a runtime environment for Java portlets coded to the standard Java Portlet Specification (JSR 168) APIs that enables the portlets to be utilized by any portal client supporting the OASIS WSRP 1.0 standard, including OracleAS Portal or the OracleAS Portal Verification Service. The Oracle Java Portlet Container also supports the preliminary version of WSRP 2.0.
This document is an installation and configuration guide for Oracle Java Portlet Container. In this document, you will learn how to:
Before you begin to install and configure Oracle Java Portlet Container, make sure that:
You have an application server meeting the minimum requirements stated in the release notes.
This section describes the configuration requirements for two of the more common portlet scenarios: configuring Oracle Containers for J2EE (OC4J) in Oracle Application Server and configuring a standalone OC4J. If you have Oracle Application Server 10.1.3.2.0, then you already have an OC4J that is preconfigured to run portlet producers (OC4J_WebCenter). If you prefer not to use OC4J_WebCenter, or if you are installing the portlet container on a standalone OC4J, then follow the steps in this section.
If you are installing the portlet container to a standalone OC4J then it is assumed that you have already downloaded and unpackaged the pdk software archive into a directory located on the same machine as your OC4J instance. The remainder of the instructions contained in this document will refer to this directory as $unzip_directory.
To configure an application server OC4J instance or a standalone OC4J to run portlets, perform the following steps. The application consoles in an Application Server or standalone OC4J instance are similar but not identical. The instructions state where extra steps for one or the other environment are necessary.
For an OC4J that is part of Oracle Application Server, create a new OC4J instance into which you can deploy your portlets:
Log in to the Application Server Control Console as oc4jadmin at:
http://<host_name>:<port_number>/emFor example:
http://localhost:8888/emFor example, to create a separate instance for WSRP producers, you might name the instance wsrp. You can use any name you prefer.
Make sure the Start this OC4J instance after creation check box is not selected.
Click Create.
For a standalone OC4J, stop the standalone OC4J in the Application Server Control Console:
Log in to Application Server Control as oc4jadmin at:
http://host_name:port_number/emFor example:
http://localhost:8888/emjava -jar portlet-server-install.jar $J2EE_HOME
Start OC4J by navigating to ORACLE_HOME\bin (where ORACLE_HOME is the source location of your OC4J) and running the following command:
oc4j -startYou can use the sample WSRP producer, wsrp-samples.ear, for this purpose.
To deploy the sample portlets EAR file, perform the following steps:
Return to the Application Server Control Console.
Log in to Application Server Control as oc4jadmin at:
http://host_name:port_number/emFor example:
http://localhost:8888/emThe 'Deploy: Select Archive' page is displayed.
Select Archive is present on local host. Upload the archive to the server where Application Server Control is running.
In Archive Location, enter the path to and the filename wsrp-samples.ear. This is located in $unzip_directory/portlet-container.
Select Automatically create a new deployment plan.
Click Next.
Wait while the system uploads the EAR file. When the file is uploaded, the 'Deploy: Application Attributes' page is displayed.
For Application Name, enter sampleportlets.
For Context Root:
For a standalone OC4J, enter portletapp.
For the Application Server instance, enter some other name that is not already in use.
Click Next.
The 'Deploy: Deployment Settings' page is displayed.
Click Deploy.
You can alter any deployment settings on this page, but, in this case, just click 'Deploy'.
The 'Deployment Confirmation' page is displayed.
Carefully check the settings to ensure that they are correct.
Click Return to dismiss the Confirmation page.
For the WSDL URL syntax, use the following structure:
http://<host>:<port>/portletapp/info
The Web page describes the portlets available in the sample portlet application and provides links to v1 and v2 WSDL urls.
Copy the link location of one of the portlet producers listed under WSDL URLS, and register this portlet producer by following the instructions in section 16.10 of the Oracle WebCenter Framework Developer's Guide.
Further test the configuration by adding some of the sample portlets from the newly registered portlet producer to a page and displaying the page. If the registration fails for any reason or you cannot add portlets to a page, then refer to Appendix E, "Troubleshooting WebCenter Applications" in the Oracle WebCenter Framework Developer's Guide.
Before JPS-compliant portlet applications are deployed to the WSRP Oracle Portlet Container the portlet application EAR files must be converted into a WSRP application containing the necessary WSDL documents. To convert a JSR 168 portlet application EAR file into a WSRP EAR file, run the WSRP producer predeployment tool located in the directory, $J2EE_HOME/shared-lib/oracle.wsrp/1.0.
java -jar wsrp-predeploy.jar <source EAR> <targeted EAR>
For JPS-compliant portlets developed with servlet version 2.3, you must specify Web proxies using the following command:
java -Dhttp.proxyHost=<proxy host> -Dhttp.proxyPort=<proxy port> -jar wsrp-predeploy.jar <Source EAR file> <Targeted EAR file>
where:
proxy host is the server to which your producer has been deployed.
proxy port is the HTTP Listener port.
The source EAR file is the name of the JSR 168 EAR file.
The targeted EAR file is the name of the new EAR file to be created. If the file name for the targeted EAR file is not specified, then a new EAR file called WSRP-<source EAR> is produced.
This applies to portlet applications deployed in previous versions of the portlet container. The EAR file should be pre-configured as described above and the portlet preference store should be migrated as described in Appendix B4 of the Oracle WebCenter Framework Developer's Guide.
Note: The wsrp-samples.ear file already contains the relevant WSRP configuration and does not need to be preconfigured before deployment to the portlet server.
You have now successfully installed Oracle Java Portlet Container. You can now:
| Revision History: |
|
| Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065, USA http://www.oracle.com/ |
Worldwide Inquiries: 1-800-ORACLE1 Fax 650.506.7200 |
Copyright and Corporate Info |